<li class="str-node">
    {{if node.nodes.length > 0}}
    <str-tree haschecked value="{{node.value}}" name="{{node.name}}" {{if node.checked}}checked{{/if}}>
        {{each item as node.nodes}}
        {{if item.type == 1}}
        <option value="{{item.value}}" {{if item.disabled}}disabled{{/if}}
            {{if item | filterValue:[node.checked]}}checked{{/if}}>
            {{item.content}}
        </option>
        {{/if}}
        {{if item.type == 2}}
        <optgroup value="{{item.value}}" name="{{item.name}}" {{if node.checked}}checked{{/if}}>
            {{{item.content}}}
        </optgroup>
        {{/if}}
        {{/each}}
    </str-tree>
    {{else}}
    <str-toggle type="checkbox" value="{{node.value}}" data-type="body" {{if node.checked}}checked{{/if}}
        {{if node.disabled}}disabled{{/if}}>
        {{node.content}}
    </str-toggle>
    {{/if}}
</li>